﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using System.Runtime.Serialization;

namespace Model
{
    [DataContract]
    public class Employee : Person
    {
        [DataMember]
        private int salaryNr;
        [DataMember]
        private string position;
        [DataMember]
        private string cpr;


        public Employee(int id, string fName, string lName, string email, string phone, int salaryNr, string position, int postalcode, string city, string cpr, string password)
            : base(id, fName, lName, email, phone, postalcode, city, password)
        {
            this.salaryNr = salaryNr;
            this.position = position;
            this.cpr = cpr;

        }

        [DataMember]
        public string Position
        {
            get { return position; }
            set { position = value; }
        }

        [DataMember]
        public int SalaryNr
        {
            get { return salaryNr; }
            set { salaryNr = value; }
        }

        [DataMember]
        public string Cpr
        {
            get { return cpr; }
            set { cpr = value; }
        }

    }
}
